// Copyright (c) 2009 Alistair Jones
// This program is made available under the terms of the MIT License.
// Copyright (c) 2007 Alistair Jones
// This program is made available under the terms of the MIT License.
package org.hypirinha.html.examples;

import static org.hypirinha.html.AttributeFactory.*;
import static org.hypirinha.html.ElementFactory.html;
import org.hypirinha.html.elements.Html;
import org.hypirinha.html.output.PrintAdapter;

public class HelloWorldCommandLine {

    public static void main(String[] args) {
        Html html = html();
        html.head().link(rel("stylesheet"), href("styles.css"));
        html.body().p(classs("greeting")).text("Hello World");

        new PrintAdapter().print(html, System.out);
    }

}
